//
//  GameRunScreen.m
//  AngerDragon
//
//  Created by gaotime_macbook_2 on 11-12-2.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "GameRunScreen.h"
#import "ScreenSpritesLayer.h"
#import "ScreenGameInfoShowLayer.h"
#import "ScreenGameControlLayer.h"
 
@implementation GameRunScreen
 

+(id) scene {

	// 'scene' is an autorelease object.
	CCScene *scene = [CCScene node];
	
	/// 加入 精灵层
	ScreenSpritesLayer *a_p_sprite_layer = [ScreenSpritesLayer node];
	[scene addChild:a_p_sprite_layer z:0 tag:kGameLayerTag_Sprite];
	
	/// 加入 游戏状态层
	ScreenGameInfoShowLayer *a_p_state_layer = [ScreenGameInfoShowLayer node];
	[scene addChild:a_p_state_layer z:1 tag:kGameLayerTag_Info];
	
	/// 加入 游戏控制层
	ScreenGameControlLayer *a_p_control_layer = [ScreenGameControlLayer node];
	[scene addChild:a_p_control_layer z:2 tag:kGameLayerTag_Control];
	
 
	// return the scene
	return scene;
}
 
@end
